package com.pwt.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import com.pwt.entity.base.BaseEntity;
import javax.persistence.*;
import lombok.EqualsAndHashCode;
import lombok.Data;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;


/**
 * 角色机器关联表
 *
 * @author auto generated
 * @date 2021-10-11 10:55:46
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Table(name = "[role_machine]")
@Schema(name = "角色机器关联表")
@DynamicInsert
@DynamicUpdate
public class RoleMachine extends BaseEntity {

	/**
	 * 角色id
	 * nullable : true
	 * default  : null
	 */
	@Schema(name = "roleId",description = "角色id")
	@Column(name = "role_id", nullable = true, length = 32)
	private String roleId;

	/**
	 * 机器id
	 * nullable : true
	 * default  : null
	 */
	@Schema(name = "machineId",description = "机器id")
	@Column(name = "machine_id", nullable = true)
	private Integer machineId;
}
